<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

<script type="text/javascript">
/*$(document).ready(function(){
  $("#eb").click(function(){
    $("#ebdiv").hide();
  });
});
*/

// code for textbox
/*
$(document).ready(function () {
       $('#Assets').change(function () { var assetname = document.getElementById('Assets').value;
	   
document.write(assetname);
	    });
   });
*/
$(document).ready(function(){
$("#eb").change(function(){
  if($("#eb").click("checked")) {
    $('#ebdiv').toggle();
	  }
	  if(($('input:checkbox[name=eb]').is(':checked'))==false)
	  {$('#ebdiv').hide();
	  $('#ebdivnext').hide();
	  $('#asset').hide();}
  if($('input[name=eb]').is(':checked')==true)
  { $('#ebdiv').show();
  $('input:checkbox[name=ebdiv]').attr('checked',false);
  	
	/* $("#ebdiv").change(function(){
  if($("#ebdiv").click("checked")) {
    $('#ebdivnext').toggle();  }
	   }); */
  }
});
});

$(document).ready(function(){
    $("#ebdiv").click(function(){
        $("#ebdivnext").toggle();
		if(($('input:checkbox[name=ebdiv]').is(':checked'))==false)
	  {
	  $('#ebdivnext').hide();
	   $('#asset').hide();
	  }
	  if(($('input:checkbox[name=ebdiv]').is(':checked'))==true)
	  {
	  $('#ebdivnext').show();
	  $('input:checkbox[name=ebdivnext]').attr('checked',false);}
    });

});

$(document).ready(function(){
    $("#ebdivnext").click(function(){
        $("#asset").toggle();
	
    });

});
</script>
<style type="text/css">#eb{display:none;}
#ebdiv{display:none;}
#ebdivnext{display:none;}
#asset{display:none;}
</style>
</head>

<body>Enter name of asset:
<input type="text" name="Assets" id="Assets" size="25" /><br />
<div id="eb"><input type="checkbox" name="eb" value="1" >Is <b id="b1"></b><script type="text/javascript">
$(document).ready(function () {
       $('#Assets').change(function () { var assetname = document.getElementById('Assets').value;
	   //document.write(assetname);
	    $('#eb').show();
		$('input:checkbox[name=eb]').attr('checked',false);
	   $("#b1").html(assetname);
	   $("#b2").html(assetname);
	    });
   });
</script> under your control?</input></div>

<div id="ebdiv"><input type="checkbox" name="ebdiv" value="2">As a result of past event?</input></div>
<div id="ebdivnext"><input type="checkbox" name="ebdivnext" value="3">Will <b id="b2"></b> provide a future economic benifits?</input></div>
<div id="asset">This is an asset</div>
</body>
</html>
